<div class="wide form">
    <table>
    <?php $form=$this->beginWidget('CActiveForm', array(
        'action'=>Yii::app()->createUrl($this->route),
        'method'=>'get',
        'id'=>'frmSearch',
    )); ?>

        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','id'); ?></td>
            <td><?php echo $form->textField($model,'id',array('size'=>60,'maxlength'=>20)); ?></td>
        
            <td class="alignRight"><?php echo Yii::t('BackEnd','category'); ?></td>
            <td><?php echo $form->dropDownList($model,'category', ExtensionClass::produc_cat_arr(), array('style'=>'width:384px;','onchange'=>'javascript:$("#frmSearch").submit();')); ?></td>
        </tr>

        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','brand_id'); ?></td>
            <td><?php echo $form->dropDownList($model,'category', ExtensionClass::brand_arr(), array('style'=>'width:384px;','onchange'=>'javascript:$("#frmSearch").submit();')); ?></td>
        
            <td class="alignRight"><?php echo Yii::t('BackEnd','product_name'); ?></td>
            <td><?php echo $form->textField($model,'product_name',array('size'=>60,'maxlength'=>300)); ?></td>
        </tr>

        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','is_hot'); ?></td>
            <td><?php echo $form->checkBox($model,'is_hot',array('onchange'=>'javascript:$("#frmSearch").submit();'),array('options' => array(Lvc::HOT => array('is_hot'=>true))));?></td>
        
            <td class="alignRight"><?php echo Yii::t('BackEnd','product_code'); ?></td>
            <td><?php echo $form->textField($model,'product_code',array('size'=>60,'maxlength'=>100)); ?></td>
        </tr>

        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','old_price'); ?></td>
            <td><?php echo $form->textField($model,'old_price',array('size'=>60,'maxlength'=>100)); ?></td>
        
            <td class="alignRight"><?php echo Yii::t('BackEnd','new_price'); ?></td>
            <td><?php echo $form->textField($model,'new_price',array('size'=>60,'maxlength'=>100)); ?></td>
        </tr>

        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','status'); ?></td>
            <td><?php echo $form->dropDownList($model,'status', Lvc::statusArray(), array('style'=>'width:140px;','onchange'=>'javascript:$("#frmSearch").submit();')); ?></td>
        
            <td class="alignRight"><?php echo Yii::t('BackEnd','blogspot'); ?></td>
            <td>
                <?php echo $form->dropDownList($model,'blogspot', Lvc::blogspotArray(), array('style'=>'width:140px;','onchange'=>'javascript:$("#frmSearch").submit();')); ?>
                <?php echo CHtml::submitButton(Yii::t('Global','Search')); ?>
            </td>
        </tr>
    </table>

<?php $this->endWidget(); ?>

</div><!-- search-form -->